<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
	<!-- 快捷操作 -->
	<div class="cf">
		<div class="fl">
			<a class="btn" href="?process=1">已完成</a>
			<a class="btn" href="?process=0">未完成</a>
			<button class="btn ajax-post confirm" url="{:U('over')}" target-form="ids">一键完成</button>
		</div>
	</div>
	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<table class="">
			<thead>
				<tr>
					<th class="row-selected"><input class="check-all" type="checkbox"/></th>
					<th>任务标题</th>
					<th>截止日期</th>
					<th>派发日期</th>
					<th>派发用户</th>
					<th>状态</th>
					<th>完成日期</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<notempty name="_list">
				<volist name="_list" id="vo">
				<tr>
					<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
					<td><a href="{:U('look?id='.$vo['id'])}">{$vo.title}</a></td>
					<td>{$vo.over_time|time_format='Y-m-d'}</td>
					<td>{$vo.send_time|time_format='Y-m-d'}</td>
					<td>{$vo.uid|get_nickname}</td>
					<td>{$vo['process']?'已完成':'未完成'}</td>
					<td>{$vo.finish_time|time_format='Y-m-d'}</td>
					<td><a href="{:U('look?id='.$vo['id'])}">查看</a></td>
				</tr>
				</volist>
			<else/>
				<tr>
					<td colspan="7" class="text-center"> aOh! 暂时还没有内容! </td>
				</tr>
			</notempty>
			</tbody>
		</table>
	</div>
	<!-- 分页 -->
	<div class="page">
		{$_page}
	</div>
</block>

<block name="script">
<script type="text/javascript">
	highlight_subnav("{:U('Calendar/mine')}");
</script>
</block>